<?php  defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<div id="rssSummaryList<?php echo intval($bID)?>" class="rssSummaryList">
	<?php  if( strlen($title)>0 ){ ?>
		<h2 class="rssSummaryListTitle"><a class="icon" title="<?php echo $title?>" href="<?php echo $url ?>"><?php echo $title?></a><span class="text"><?php echo $title?></span></h2>
	<?php  } ?>
	<dl>
	<?php  
		$rssObj=$controller;
		$textHelper = Loader::helper("text"); 
	
		if (strlen($errorMsg) > 0) {
			echo $errorMsg;
		} else {
			foreach ($posts as $itemNumber=>$item) { 
				if( intval($itemNumber) >= intval($rssObj->itemsToDisplay) ) break;
	?>
				<dt><a href="<?php echo  $item->get_permalink(); ?>" <?php  if($rssObj->launchInNewWindow) echo 'target="_blank"' ?> ><?php echo  $item->get_title(); ?></a></dt>
				<dd>
					<strong><?php echo  $item->get_date('Y年m月d日'); ?></strong>
					<?php if( $rssObj->showSummary ) { ?>
					<br /><?php echo $textHelper->shortText( strip_tags($item->get_description()) ); ?>
					<?php } ?>
				</dd>
	<?php
			}
		}
	?>
	</dl>
</div>